package br.com.insight.consultoria.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="TIPO")
public class Tipo implements Serializable{
	
	@Transient
	private static final long serialVersionUID = 1L;

	@Id@GeneratedValue
	@Column(name="ID_TIPO")
	private Long id;
	
	@OneToOne
	@JoinColumn(name="ID_AREA")
	private Area area;
	
	@Column(name="TIPO")
	private String tipo;

	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTipo() {
		return tipo;
	}

	public void setTipo(String tipo) {
		this.tipo = tipo;
	}
	
}
